// layui.define(['element'],function(exports){
//     var $ = layui.$;
//     $('.input-field').on('change',function(){
//         var $this = $(this),
//             value = $.trim($this.val()),
//             $parent = $this.parent();
//         if(value !== '' && !$parent.hasClass('field-focus')){
//             $parent.addClass('field-focus');
//         }else{
//             $parent.removeClass('field-focus');
//         }
//     })
//     exports('login');
//
//     $.post("http://localhost:8006/User/Userlogin",{"":},function(data)
// });


layui.use(['jquery','layer','form'], function() {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;

    $("#tj").click(function(){
        var userpassword = $("#userpassword").val();
        var userpasswords = $("#userpasswords").val();
        alert(userpassword)
        var obj = {
            "userpassword":userpassword,
            "userpasswords":userpasswords,
        }
        $.post("http://localhost:8006/User/Userxg",obj,function(data){
            alert(data)
            if(data=="修改密码成功！"){
                window.location.href='xgmm.html';
            }else {
                alert(data);
            }
        },"text");
      });
});
